import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个数");
        int n=sc.nextInt();

        if(n>=1000)
            System.out.println("输入非法");


        String arr2[]={"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"};

        int a=0;
        int b=0;
        int c=0;

         a=n/100;
         b=n/10%10;
         c=n%10;

         if (a==0&&b==0)
             System.out.println(arr2[c]);
         else if(a==0)
             System.out.println(arr2[b]+""+arr2[c]);
         else
             System.out.println(arr2[a]+""+arr2[b]+arr2[c]);


    }
}
